package opensource.xinye.com.aviplayer

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        // AVI 播放器
        AviPlayer.setOnClickListener {
            AVIPlayerActivity.launch(this@MainActivity)
        }
    }

    companion object {

        init {
            System.loadLibrary("player")
        }
    }
}
